import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import './assets/iconfont/iconfont.css'
import './assets/iconfont/iconfont.js'
// 引入mapbox依赖
// import mapboxgl from 'mapbox-gl'
// import 'mapbox-gl/dist/mapbox-gl.css'
//引入echarts
import * as echarts from 'echarts' 
//引入element ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//引入turf.js
import * as turf from '@turf/turf'
import axios from "axios";
import VueAxios from "vue-axios";

import MapboxDraw from "@mapbox/mapbox-gl-draw"
import '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css'

 
//挂载在原型，组件内使用直接this.$echarts调用

Vue.use(ElementUI)
Vue.use(VueAxios, axios)
Vue.prototype.$turf = turf
Vue.prototype.$echarts = echarts 
Vue.prototype.$mapboxdraw = MapboxDraw 
// Vue.prototype.$mapboxgl = mapboxgl
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
